<?php
class uploadAction extends rareAction{
	public function execute(){}
	public function executePost(){
		$picType = $this->getPostParam('picType',0);
		if (!empty($_FILES)) {
			$img = new Img($_FILES['Filedata'],$picType);
			$re = $img->saveUpload();
			if($picType==service_type::PHOTO){
				$re = service_image::getThumb($re);
			}
			echo $re;
		}
		exit;
	}
}
?>
